package com.example.inner_class;

import com.example.inner_class.father.Father1;
import com.example.inner_class.father.Father2;

public class MyMemberInnerClass extends Father1 {

    private String name="私有成员变量";
    public static void speak(){
        System.out.println("公共静态成员方法");
    }
    public class MemberInnerClass extends Father2 {
        public void hello(){
            System.out.println(name);
            System.out.println(name2);
            System.out.println(name3);
            System.out.println(name4);
            speak();
            speak2();
        }
    }
    private static void speak2(){
        System.out.println("私有静态成员方法");
    }
    public String name2="公共成员变量";
    private static String name3="私有静态成员变量";
    public static String name4="公共静态变量成员变量";
}
